#!/bin/sh

alias curl="curl -stederr"

#how to find big guys, instead of scanning over all stocks
#Loser in NASDAQ
for ticker in `curl http://finance.yahoo.com/gainers?e=o |sed 's/<tr>/\n/g' |grep -o -P "s=[A-Z]{1,4}" |uniq |cut -d= -f2`
do
    echo $ticker
done

#Loser in AMEX
for ticker in `curl http://finance.yahoo.com/gainers?e=aq |sed 's/<tr>/\n/g' |grep -o -P "s=[A-Z]{1,4}" |uniq |cut -d= -f2`
do
    echo $ticker
done

#Loser in NYSE
for ticker in `curl http://finance.yahoo.com/gainers?e=nq |sed 's/<tr>/\n/g' |grep -o -P "s=[A-Z]{1,4}" |uniq |cut -d= -f2`
do
    echo $ticker
done
